LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sdl_image

LOCAL_SRC_FILES := ../../ZUI/thirdParty/sdl_image/src/IMG.c ../../ZUI/thirdParty/sdl_image/src/IMG_bmp.c ../../ZUI/thirdParty/sdl_image/src/IMG_gif.c ../../ZUI/thirdParty/sdl_image/src/IMG_jpg.c ../../ZUI/thirdParty/sdl_image/src/IMG_lbm.c ../../ZUI/thirdParty/sdl_image/src/IMG_pcx.c ../../ZUI/thirdParty/sdl_image/src/IMG_png.c ../../ZUI/thirdParty/sdl_image/src/IMG_pnm.c ../../ZUI/thirdParty/sdl_image/src/IMG_svg.c ../../ZUI/thirdParty/sdl_image/src/IMG_tga.c ../../ZUI/thirdParty/sdl_image/src/IMG_webp.c ../../ZUI/thirdParty/sdl_image/src/IMG_xcf.c ../../ZUI/thirdParty/sdl_image/src/IMG_xpm.c ../../ZUI/thirdParty/sdl_image/src/IMG_xv.c ../../ZUI/thirdParty/sdl_image/src/IMG_xxx.c

ifeq ($(PM5_CONFIG),debug)
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../ZUI/thirdParty/sdl_image $(LOCAL_PATH)/../../ZUI/thirdParty/SDL2/include $(LOCAL_PATH)/../../ZUI/thirdParty/libpng $(LOCAL_PATH)/../../ZUI/thirdParty/libwebp/src $(LOCAL_PATH)/../../ZUI/thirdParty/jpeg
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DDEBUG -D_DEBUG -D_CRTDBG_MAP_ALLOC -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif

ifeq ($(PM5_CONFIG),release)
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../ZUI/thirdParty/sdl_image $(LOCAL_PATH)/../../ZUI/thirdParty/SDL2/include $(LOCAL_PATH)/../../ZUI/thirdParty/libpng $(LOCAL_PATH)/../../ZUI/thirdParty/libwebp/src $(LOCAL_PATH)/../../ZUI/thirdParty/jpeg
  LOCAL_CPP_FEATURES := exceptions
  LOCAL_CFLAGS := -D__ANDROID__ -DNDEBUG -DSDL_STATICLIB
  include $(BUILD_STATIC_LIBRARY)
endif